<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    /* 
    函数声明的提升：
    1.
     */
     console.log(func);
     var func=function(){
       console.log(123);
     }
     //函数声明提升,会将整个函数的对象提升带最前面
     /* function func(){
       console.log(123456);
     } */
  </script>
</head>
<body>
  
</body>
</html>